package com.tairan.chapter.web.service.impl;

import com.google.common.collect.Lists;
import com.tairan.chapter.web.service.IUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements IUserService {

    private Logger logger = LoggerFactory.getLogger(IUserService.class);

    @Override
    public List<String> list() {
        List<String> users = Lists.newArrayList();
        users.add("李泰然");
        users.add("张浩");
        users.add("郭雪");
        logger.info("UserServiceImpl查询了数据库");
        return users;
    }

    @Override
    public void createOrUpdate(String user) {

    }

    @Override
    public void delete(String user) {

    }
}
